<template>
  <div class="lm-patient-overview">
    <!-- <ul class="lm-over-list">
      <li v-for="item in items" :key="item.id" class="lm-over-item">
        <div class="lm-inline-block lm-item-header">{{ item.time }}</div>
        <div class="lm-inline-block lm-item-border">&nbsp;</div>
        <div class="lm-inline-block lm-item-body">{{ item.desc }}</div>
      </li>
    </ul> -->
    <div class="lm-overview-steps">
      <el-steps direction="vertical" :active="2">
        <el-step v-for="item in items" :key="item.id" :title="new Date(item.eventDate).format('yyyy-MM-dd hh:mm:ss')" :description="item.eventMsg" icon=""></el-step>
      </el-steps>
    </div>
    <div class="lm-overview-search">
      <el-date-picker
        v-model="value1"
        type="date"
        placeholder="选择日期"
      >
      </el-date-picker>
      <div class="lm-search-desc">
        <br />
        阶段描述：报告上传确认制作
        <br />
        病例数量：5例
        <br />
        套餐名称：两年四副
        <br />
        治疗阶段：P1
      </div>
    </div>
  </div>
</template>

<script>
import { getPatientLine } from '@/api/patient';
export default {
  props: {
    params: {
      type: Object,
      default: () => {}
    }
  },
  data: () => {
    return {
      items: [],
      value1: ''
    };
  },
  mounted() {
    this.getPatientLine();
  },
  methods: {
    getPatientLine() {
      getPatientLine({ patientId: this.params.id }).then(res => {
        console.warn(res);
        this.items = res;
      });
    }
  }
};
</script>

<style lang="scss" scoped>
.lm-patient-overview{
  min-height: 300px;
  .lm-overview-steps{
      width:calc(100% - 210px);
      display:inline-block;
  }
  .lm-overview-search{
      width:200px;display:inline-block;
      font-size: 14px;
      position: absolute;
      .lm-search-desc{
          line-height: 25px;
      }
  }
}
</style>
